/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-02-25
 * Time: 13:09
 */
public class PetDog {
    public String name;//狗的名字
    public String color;//狗的颜色

    public void bark() {
        System.out.println(name + "汪汪汪");
    }
    public void wag() {
        System.out.println(name + "摇尾巴");
    }
}
